package com.etheart.lyric.htmlparser.service.baidu;

import com.etheart.lyric.htmlparser.util.HttpDownloader;
import com.etheart.lyric.htmlparser.util.HttpRequester;
import com.etheart.lyric.htmlparser.util.HttpRespons;

public class BaiduSongUrlGetService {
	public String getSongUrlByName(String songName ,String netStr){
		
		
		 try {     
			 String url = "http://www.top100.cn/download/dl.php?n=You+Belong+With+Me.mp3&al=sgr3dypt38r";
	            
			 HttpRequester request = new HttpRequester(); 
			 
	            HttpRespons hr = request.sendGet(url);     
	      
	            System.out.println(hr.getUrlString());     
	            System.out.println(hr.getProtocol());     
	            System.out.println(hr.getHost());     
	            System.out.println(hr.getPort());     
	            System.out.println(hr.getContentEncoding());     
	            System.out.println(hr.getMethod());     
	                 
	            System.out.println(hr.getContent());     
	      
	        } catch (Exception e) {     
	            e.printStackTrace();     
	        } 
		
		
		
		
		HttpDownloader downloader = new HttpDownloader();
	//	String url = downloader.download("http://www.top100.cn/download/dl.php?n=You+Belong+With+Me.mp3&al=sgr3dypt38r");
		return "";
	}
	public static void main(String[] args) {
		new BaiduSongUrlGetService().getSongUrlByName(null, null);
	}
}
